home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / blackjack_pay3.swf / scripts / DefineButton2_213 / BUTTONCONDACTION on(release).as < prev   
Encoding:
Text File  |  2006-09-05  |  574 b   |  30 lines

  1. on(release){
  2.    if(betting == false)
  3.    {
  4.       return undefined;
  5.    }
  6.    if(currentBet[0] >= 196)
  7.    {
  8.       return undefined;
  9.    }
  10.    chip5Val++;
  11.    insurance == false;
  12.    double = false;
  13.    if(chip5Val == 5)
  14.    {
  15.       chip25Val++;
  16.       chip5Val = 0;
  17.    }
  18.    if(chip25Val == 4)
  19.    {
  20.       chip100Val++;
  21.       chip25Val = 0;
  22.    }
  23.    CashAdd(5);
  24.    _root.gotoAndStop("start");
  25.    c++;
  26.    _root.chip5_.duplicateMovieClip("chip" + c,c);
  27.    setProperty("chip" + c, _X, posChipx[random(7)]);
  28.    setProperty("chip" + c, _Y, posChipy[random(6)]);
  29. }
  30.